Loan denied/go through dealership?

Hello all,

Just got notified I was denied for a loan through my bank for a car. Was advise to finance with the dealership for a couple of months then reapply for my banks loan. Would some dealerships deny to work with me in only financing them for a couple of months then move to my bank? How would I approach the salesman about that? Any help is needed! Thank you!